package demo.bocweb.login_module.contract;


import demo.bocweb.com.sdk.base.BasePresenter;
import demo.bocweb.com.sdk.base.IBaseModel;
import demo.bocweb.com.sdk.base.IBaseView;
import demo.bocweb.com.sdk.base.bean.BaseBean;
import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * Created by zhelun on 2018/1/26.
 */

public interface FindPwdContract {
    abstract class IFindPwdPresenter extends BasePresenter<IFindPwdModel, IFindPWdView> {
        public abstract void findPwd(RequestBody body);

        public abstract void sendSmsCode(RequestBody body);

        public abstract void checkSmsCode(RequestBody body);

    }

    interface IFindPwdModel extends IBaseModel {
        Observable<BaseBean> findPwd(RequestBody body);


        Observable<BaseBean> sendSmsCode(RequestBody body);

        Observable<BaseBean> checkSmsCode(RequestBody body);


    }

    interface IFindPWdView extends IBaseView {
        void findPwdSuccess();

        void sendSmsCodeSuccess();

        void checkSmsCodeSuccess();

        void findPwd();

        void sendSmsCode();

        void checkSmsCode();


    }

}
